****Institutions and Identity Based Clientelism****
net install gr0070.pkg, from("http://www.stata-journal.com/software/sj17-3/")

***Regression Models***


eststo Basic: logit Turnout i.SNTV i.TribalMP, cluster(District)

eststo Interaction: logit Turnout i.SNTV##i.TribalMP Islamist Origin Age Education Gender Class i.Region Representation, cluster(District)

margins TribalMP#SNTV

marginsplot, scheme(plotplain) xtitle({bf:}) ytitle({bf:Probability of Voting in Last Elections}) 


esttab Basic Interaction using "Institutions_Clientelism.tex", mtitles() drop( ) star(+ 0.10 * 0.05 ** 0.01 *** 0.001) collabels(none) label stats(r2  N, fmt(%9.4f %9.0f %9.0fc) labels("R-squared" )) plain b(%9.4f) se(%9.4f) noabbrev se nonumbers lines parentheses replace fragment

**Average turnout

tab SNTV Turnout, row chi2


**Balance tables Section 5.1

ta SNTV MemberTribe, row chi2

ta SNTV Cheated, row chi2

ta SNTV Fund, row chi2

ta SNTV TribalLaw, row chi2

ta SNTV Status, row chi2

ta SNTV Respect, row chi2

ta SNTV Tribal_Primary, row chi2

ta SNTV Ceremonies, row chi2

ta SNTV Wasta_Service, row chi2

ta SNTV Wasta_Job, row chi2

ta SNTV Tribal_Support, row chi2

ta SNTV Vote_On_Services, row chi2

ta SNTV MPhelp, row chi2

